<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="cn.ffcs.security" extends="struts-default" namespace="/security">

	<action name="login" class="LoginBean" method="login">
		<result name="success" type="redirect">/common/index.action</result>
		<result name="fail">/login.jsp</result>
	</action>
	<action name="logout" class="LogoutBean" method="logout">
		<result name="success">/toLogin.jsp</result>
	</action>
	<!-- USER BEGIN-->
	<action name="editUser" class="UserBean" method="findById">
		<result name="success">/security/user/editUser.jsp</result>
	</action>
	<action name="saveUser" class="UserBean" method="saveOrUpdate">
		<result name="success">/security/user/editUser.jsp</result>
	</action>
	<action name="delUser" class="UserBean" method="remove">
		<result name="success">/commons/success.jsp</result>
	</action>
	<action name="listUser" class="UserBean" method="findByPage">
		<result name="success">/security/user/listUser.jsp</result>
	</action>
	<action name="batchDelUser" class="UserBean" method="batchDel">
		<result name="success" type="redirect">listUser.action</result>
	</action>
	<!-- USER END-->
	<!-- ROLE BEGIN-->
	<action name="editRole" class="RoleBean" method="findById">
		<result name="success">/security/user/editRole.jsp</result>
	</action>
	<action name="saveRole" class="RoleBean" method="saveOrUpdate">
		<result name="success">/security/user/editRole.jsp</result>
	</action>
	<action name="delRole" class="RoleBean" method="remove">
		<result name="success">/commons/success.jsp</result>
	</action>
	<action name="listRole" class="RoleBean" method="findByPage">
		<result name="success">/security/user/listRole.jsp</result>
	</action>
	<action name="batchDelRole" class="RoleBean" method="batchDel">
		<result name="success" type="redirect">listRole.action</result>
	</action>
	<!-- ROLE END-->
	<!-- RESOURCE BEGIN-->
	<action name="editResource" class="ResourceBean" method="findById">
		<result name="success">/security/user/editResource.jsp</result>
	</action>
	<action name="saveResource" class="ResourceBean" method="saveOrUpdate">
		<result name="success">/security/user/editResource.jsp</result>
	</action>
	<action name="delResource" class="ResourceBean" method="remove">
		<result name="success">/commons/success.jsp</result>
	</action>
	<action name="listResource" class="ResourceBean" method="findByPage">
		<result name="success">/security/user/listResource.jsp</result>
	</action>
	<action name="batchDelResource" class="ResourceBean" method="batchDel">
		<result name="success" type="redirect">listResource.action</result>
	</action>
	<!-- RESOURCE END-->
	<!-- ROLERELARESOURCE BEGIN-->
	<action name="authResource" class="RoleRelaResourceBean" method="authResource">
		<result name="success">/security/authResource.jsp</result>
	</action>
	<action name="saveRoleRelaResource" class="RoleRelaResourceBean" method="saveRoleRelaResource">
		<result name="success">/security/authResource.jsp</result>
	</action>
	<!-- ROLERELARESOURCE END-->
	<!-- ROLERELAUSER BEGIN-->
	<action name="authRole" class="RoleRelaUserBean" method="authRole">
		<result name="success">/security/authRole.jsp</result>
	</action>
	<action name="saveRoleRelaUser" class="RoleRelaUserBean" method="saveRoleRelaUser">
		<result name="success">/security/authRole.jsp</result>
	</action>
	<!-- ROLERELAUSER END-->
</package>
</struts>